package com.browser;

import com.browser.ui.BrowserWindow;
import javafx.application.Application;
import javafx.stage.Stage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Browser extends Application {
    private static final Logger logger = LoggerFactory.getLogger(Browser.class);

    @Override
    public void start(Stage primaryStage) {
        try {
            BrowserWindow browser = new BrowserWindow();
            browser.show(primaryStage);
        } catch (Exception e) {
            logger.error("Browser initialization failed", e);
            throw new RuntimeException("Browser initialization failed", e);
        }
    }

    public static void main(String[] args) {
        launch(args);
    }
} 